import request from '@/utils/request'

// 查询辅导员汇总信息列表
export function summaryList(query) {
  return request({
    url: '/clr/examinescoring/summary/list',
    method: 'get',
    params: query
  })
}

// 查询院系辅导员汇总信息列表
export function deptlist(query) {
  return request({
    url: '/clr/examinescoring/summary/deptlist',
    method: 'get',
    params: query
  })
}
// 查询辅导员汇总信息详情
export function summary(cemId) {
  return request({
    url: '/clr/examinescoring/summary/' + cemId,
    method: 'get',
  })
}
// 导出辅导员考核指标列表
export function summaryExport(data) {
  return request({
    url: '/clr/examinescoring/summary/export',
    method: 'post',
    data: data
  })
}

// 查询考核汇总信息列表(只上传记录)
export function checkrecordList(query) {
  return request({
    url: '/clr/checkrecord/list',
    method: 'get',
    params: query
  })
}
// 批量导入考核分数
export function importScore(query) {
  return request({
    url: '/clr/checkrecord/importScore',
    method: 'post',
    data: query
  })
}
// 下载模板
export function importTemplate(query) {
  return request({
    url: '/clr/checkrecord/importTemplate',
    method: 'post',
    params: query,
    responseType: 'blob'
  })
}
// 新增考核汇总信息
export function addCheckrecord(query) {
  return request({
    url: '/clr/checkrecord',
    method: 'post',
    data: query,
 
  })
}
// 修改考核汇总信息
export function updateCheckrecord(query) {
  return request({
    url: '/clr/checkrecord',
    method: 'put',
    data: query,
  })
}
// 导出考核汇总信息
export function exportCheckrecord(query) {
  return request({
    url: '/clr/checkrecord/export',
    method: 'post',
    data: query,
    responseType: 'blob'
  })
}
// 删除考核汇总信息
export function delCheckrecord(query) {
  return request({
    url: '/clr/checkrecord/' + query,
    method: 'delete',
  })
}
